package ch.xch.ehadaily;

import android.app.Activity;
import android.app.Application;

/**
 * 继承Application，进行应用的相关配置
 * Created by XCH on 2014/10/31.
 */
public class APPContext extends Application{

    private static APPContext app;

    private Activity currentActivity; // 当前显示的Activity

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
    }

    public void setCurrentActivity(Activity currentActivity) {
        this.currentActivity = currentActivity;
    }

    public Activity getCurrentActivity() {
        return currentActivity;
    }
}
